package com.sysfrog.cucumber.lexer;

/*
* Copyright (C) 2010 Thomas Heggelund
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*
*/

import com.sysfrog.cucumber.CucumberFileType;
import com.sysfrog.cucumber.CucumberLanguage;
import com.sysfrog.cucumber.psi.CucumberElementType;
import com.intellij.psi.TokenType;
import com.intellij.psi.tree.IElementType;
import com.intellij.psi.tree.TokenSet;

public interface CucumberTokenTypesNew {

  static CucumberLanguage language = CucumberFileType.CUCUMBER;

  IElementType FEATURE = new CucumberElementType("FEATURE");
  IElementType DIGIT = new CucumberElementType("DIGIT");
  IElementType TAG = new CucumberElementType("TAG");

  IElementType STEP_MEAT = new CucumberElementType("step_meat");
  
  IElementType GIVEN = new CucumberElementType("GIVEN");
  IElementType WHEN = new CucumberElementType("WHEN");
  IElementType THEN = new CucumberElementType("THEN");
  IElementType AND = new CucumberElementType("AND");
  IElementType OUTLINE = new CucumberElementType("OUTLINE");

  IElementType I = new CucumberElementType("I");
  IElementType IN = new CucumberElementType("IN");
  IElementType AN = new CucumberElementType("AN");
  IElementType ORDER = new CucumberElementType("ORDER");

  IElementType WANT = new CucumberElementType("WANT");
  IElementType SCENARIO = new CucumberElementType("SCENARIO");
  IElementType MY_SCENARIO = new CucumberElementType("MY_SCENARIO");

  IElementType MY_TABLE = new CucumberElementType("MY_SCENARIO");
  IElementType TABLE_ROW_START= new CucumberElementType("TABLE_ROW_START");
  IElementType TABLE_CELL= new CucumberElementType("TABLE_CELL");

  IElementType AS = new CucumberElementType("AS");

  IElementType COMPOSER = new CucumberElementType(":");
  IElementType LINE_COMMENT = new CucumberElementType("line comment");
  // Literals
  IElementType STRING_LITERAL = new CucumberElementType("string literal");

  IElementType CHAR_LITERAL = new CucumberElementType("character literal");
  IElementType SYMBOL = new CucumberElementType("symbol");

  // Control characters
  IElementType EOL = new CucumberElementType("end of line");
  IElementType EOF = new CucumberElementType("end of file");
  IElementType WHITESPACE = TokenType.WHITE_SPACE;
  IElementType WHITE_LINE = new CucumberElementType("WHITE_LINE");

  IElementType BAD_CHARACTER = TokenType.BAD_CHARACTER;

  TokenSet WHITESPACE_SET = TokenSet.create(EOL, EOF, WHITESPACE);
  TokenSet KEYWORDS = TokenSet.create( FEATURE, GIVEN, WHEN, THEN, AND, I, IN, AN, ORDER, WANT, SCENARIO, AS );

  TokenSet COMMENTS = TokenSet.create( LINE_COMMENT );
}
